www.gusucode.com > Smarty PHP模板引擎 v3.1.32PHP源码程序 > Smarty PHP模板引擎 v3.1.32/smarty3.1.32/smarty-3.1.32/libs/sysplugins/smartyexception.php
<?php /** * Smarty exception class * * @package Smarty */ class SmartyException extends Exception { public static $escape = false; /** * @return string */ public function __toString() { return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- '; } }